import 'package:flutter_wanandroid_ohos/generated/json/base/json_field.dart';
import 'package:flutter_wanandroid_ohos/generated/json/wx_chapter_entity.g.dart';
import 'dart:convert';
export 'package:flutter_wanandroid_ohos/generated/json/wx_chapter_entity.g.dart';

@JsonSerializable()
class WxChapterEntity {
	int id = 0;
	String name = '';
	int order = 0;
	int parentChapterId = 0;
	int type = 0;
	bool userControlSetTop = false;
	int visible = 0;

	WxChapterEntity();

	factory WxChapterEntity.fromJson(Map<String, dynamic> json) => $WxChapterEntityFromJson(json);

	Map<String, dynamic> toJson() => $WxChapterEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}